Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reconstruction logic for padding bytes at the end of Reports (only possible for devices without ReportID) #707

Merged
merged 2 commits into from
Oct 30, 2024

Conversation

JoergAtGithub
Copy link
Contributor

  • Added reconstruction logic of const padding bytes at the end of a report for devices which don't use ReportIDs
  • Enhanced padding logic to distinguish between byte and bit padding.
  • Added a new test case for Razer Cobra mouse 1532_00A3_0002_0001 which has a completly con feature report of 90 bytes.
  • Modified expected report descriptor reference file 045E_02FF_0005_0001_expected.rpt_desc to include additional padding bytes.

Closes: #703

…rt for devices which don't use ReportIDs

-Enhanced padding logic to distinguish between byte and bit padding.
-Add a new test case for Razer Cobra mouse `1532_00A3_0002_0001` which has a completly con feature report of 90 bytes.
-Modified expected report descriptor reference file `045E_02FF_0005_0001_expected.rpt_desc` to include additional padding bytes.
@mcuee mcuee added the Windows Related to Windows backend label Oct 28, 2024
@Youw
Copy link
Member

Youw commented Oct 29, 2024

If someone could test/verify this - I'll approve/merge.

@mcuee
Copy link
Member

mcuee commented Oct 29, 2024

Not sure if I have test devices which can test the improvement in this PR. Still I will check with my existing devices to see if there are any differences.

Copy link

@SuibianP SuibianP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with 1532:00A3. hid_report_reconstructor_test adds the last const report correctly.

@Youw Youw merged commit ff67c77 into libusb:master Oct 30, 2024
24 of 26 checks passed
@JoergAtGithub JoergAtGithub deleted the pading_bytes_for_reports_without_id branch October 30, 2024 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Windows Related to Windows backend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hid_get_report_descriptor: missing unnumbered feature report
4 participants